package com.dfbz.demo01_OutputStream;

import java.io.FileOutputStream;
import java.io.OutputStream;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo03_写出一个字节数组 {
    public static void main(String[] args) throws Exception{

        OutputStream os =new FileOutputStream("001.txt");

//        byte[] data ={97,98,99,100};

        String str = "你好啊，我好哈";

        byte[] data = str.getBytes();

        os.write(data);
        os.close();
    }
}
